package model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TransferExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TransferExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTransfernoIsNull() {
            addCriterion("transferNo is null");
            return (Criteria) this;
        }

        public Criteria andTransfernoIsNotNull() {
            addCriterion("transferNo is not null");
            return (Criteria) this;
        }

        public Criteria andTransfernoEqualTo(Integer value) {
            addCriterion("transferNo =", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoNotEqualTo(Integer value) {
            addCriterion("transferNo <>", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoGreaterThan(Integer value) {
            addCriterion("transferNo >", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoGreaterThanOrEqualTo(Integer value) {
            addCriterion("transferNo >=", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoLessThan(Integer value) {
            addCriterion("transferNo <", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoLessThanOrEqualTo(Integer value) {
            addCriterion("transferNo <=", value, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoIn(List<Integer> values) {
            addCriterion("transferNo in", values, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoNotIn(List<Integer> values) {
            addCriterion("transferNo not in", values, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoBetween(Integer value1, Integer value2) {
            addCriterion("transferNo between", value1, value2, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransfernoNotBetween(Integer value1, Integer value2) {
            addCriterion("transferNo not between", value1, value2, "transferno");
            return (Criteria) this;
        }

        public Criteria andTransferdateIsNull() {
            addCriterion("transferDate is null");
            return (Criteria) this;
        }

        public Criteria andTransferdateIsNotNull() {
            addCriterion("transferDate is not null");
            return (Criteria) this;
        }

        public Criteria andTransferdateEqualTo(Date value) {
            addCriterion("transferDate =", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateNotEqualTo(Date value) {
            addCriterion("transferDate <>", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateGreaterThan(Date value) {
            addCriterion("transferDate >", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateGreaterThanOrEqualTo(Date value) {
            addCriterion("transferDate >=", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateLessThan(Date value) {
            addCriterion("transferDate <", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateLessThanOrEqualTo(Date value) {
            addCriterion("transferDate <=", value, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateIn(List<Date> values) {
            addCriterion("transferDate in", values, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateNotIn(List<Date> values) {
            addCriterion("transferDate not in", values, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateBetween(Date value1, Date value2) {
            addCriterion("transferDate between", value1, value2, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferdateNotBetween(Date value1, Date value2) {
            addCriterion("transferDate not between", value1, value2, "transferdate");
            return (Criteria) this;
        }

        public Criteria andTransferidIsNull() {
            addCriterion("transferID is null");
            return (Criteria) this;
        }

        public Criteria andTransferidIsNotNull() {
            addCriterion("transferID is not null");
            return (Criteria) this;
        }

        public Criteria andTransferidEqualTo(Integer value) {
            addCriterion("transferID =", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidNotEqualTo(Integer value) {
            addCriterion("transferID <>", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidGreaterThan(Integer value) {
            addCriterion("transferID >", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidGreaterThanOrEqualTo(Integer value) {
            addCriterion("transferID >=", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidLessThan(Integer value) {
            addCriterion("transferID <", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidLessThanOrEqualTo(Integer value) {
            addCriterion("transferID <=", value, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidIn(List<Integer> values) {
            addCriterion("transferID in", values, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidNotIn(List<Integer> values) {
            addCriterion("transferID not in", values, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidBetween(Integer value1, Integer value2) {
            addCriterion("transferID between", value1, value2, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransferidNotBetween(Integer value1, Integer value2) {
            addCriterion("transferID not between", value1, value2, "transferid");
            return (Criteria) this;
        }

        public Criteria andTransfercauseIsNull() {
            addCriterion("transferCause is null");
            return (Criteria) this;
        }

        public Criteria andTransfercauseIsNotNull() {
            addCriterion("transferCause is not null");
            return (Criteria) this;
        }

        public Criteria andTransfercauseEqualTo(String value) {
            addCriterion("transferCause =", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseNotEqualTo(String value) {
            addCriterion("transferCause <>", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseGreaterThan(String value) {
            addCriterion("transferCause >", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseGreaterThanOrEqualTo(String value) {
            addCriterion("transferCause >=", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseLessThan(String value) {
            addCriterion("transferCause <", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseLessThanOrEqualTo(String value) {
            addCriterion("transferCause <=", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseLike(String value) {
            addCriterion("transferCause like", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseNotLike(String value) {
            addCriterion("transferCause not like", value, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseIn(List<String> values) {
            addCriterion("transferCause in", values, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseNotIn(List<String> values) {
            addCriterion("transferCause not in", values, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseBetween(String value1, String value2) {
            addCriterion("transferCause between", value1, value2, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransfercauseNotBetween(String value1, String value2) {
            addCriterion("transferCause not between", value1, value2, "transfercause");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanIsNull() {
            addCriterion("transferHandlMan is null");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanIsNotNull() {
            addCriterion("transferHandlMan is not null");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanEqualTo(String value) {
            addCriterion("transferHandlMan =", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanNotEqualTo(String value) {
            addCriterion("transferHandlMan <>", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanGreaterThan(String value) {
            addCriterion("transferHandlMan >", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanGreaterThanOrEqualTo(String value) {
            addCriterion("transferHandlMan >=", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanLessThan(String value) {
            addCriterion("transferHandlMan <", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanLessThanOrEqualTo(String value) {
            addCriterion("transferHandlMan <=", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanLike(String value) {
            addCriterion("transferHandlMan like", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanNotLike(String value) {
            addCriterion("transferHandlMan not like", value, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanIn(List<String> values) {
            addCriterion("transferHandlMan in", values, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanNotIn(List<String> values) {
            addCriterion("transferHandlMan not in", values, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanBetween(String value1, String value2) {
            addCriterion("transferHandlMan between", value1, value2, "transferhandlman");
            return (Criteria) this;
        }

        public Criteria andTransferhandlmanNotBetween(String value1, String value2) {
            addCriterion("transferHandlMan not between", value1, value2, "transferhandlman");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}